<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ElectricAccountingRecords extends Model
{
    public $timestamps = false;
    protected $connection = 'mysql_center';
    protected $table = 'electric_accounting_records';

    //关联代理商
    public function electric_platform_agent()
    {
        return $this->hasOne(ElectricPlatformAgent::class, 'id', 'agent_id');
    }
}
